package com.hbk.programe;

import java.util.ArrayList;
import java.util.List;

public class Line {
	
	private String line;
	
	private boolean pseudo;
	
	private List<Line> children=new ArrayList<Line>();
	
	private int level;
	
	public Line(String line,boolean pseudo,int level) {
		this.line=line;
		this.pseudo=pseudo;
		this.level=level;
	}

	public String getLine() {
		return line;
	}

	public void setLine(String line) {
		this.line = line;
	}

	public boolean isPseudo() {
		return pseudo;
	}

	public void setPseudo(boolean pseudo) {
		this.pseudo = pseudo;
	}

	public List<Line> getChildren() {
		return children;
	}

	public void setChildren(List<Line> children) {
		this.children = children;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	@Override
	public String toString() {
		return "{\"line\":\"" + line + "\", \"pseudo\":\"" + pseudo + "\", \"children\":\"" + children + "\"}";
	}
}
